##############################
#   character 
#   by Jerry Yang      
#   UUZ0226            
#############################
import pygame
from settings import Settings


class Hero():
    def __init__(self, ai_settings,screen):
        """初始化并设置其初始位置"""
        # 加载图像并获取其外接矩形
        self.filepath = ai_settings.filepath
        self.screen = screen
        self.image = pygame.image.load(self.filepath+'A.png')
        self.rect = self.image.get_rect()
        self.screen_rect = screen.get_rect()
        self.rect.centerx = self.screen_rect.centerx
        self.rect.bottom = self.screen_rect.bottom
        
    def blitme(self):
        """在指定位置绘制"""
        self.screen.blit(self.image, self.rect)
        
        
        



